package com.party.notify.notifyPush.activity;

import com.party.core.model.activity.ActStatus;
import com.party.core.model.member.MemberAct;
import com.party.core.service.member.IMemberActService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.print.attribute.standard.MediaSize;
import java.util.List;

/**
 * 已取消
 * Created by wei.li
 *
 * @date 2017/8/9 0009
 * @time 10:59
 */

@Service
@Component(value = "cancelSendService")
public class CancelSendService extends INotifyActivitySendService {

    @Autowired
    private IMemberActService memberActService;

    public List<MemberAct> getList(String activityId) {
        MemberAct memberAct = new MemberAct();
        memberAct.setCheckStatus(ActStatus.ACT_STATUS_CANCEL.getCode());
        memberAct.setActId(activityId);
        return memberActService.list(memberAct);
    }
}
